<script type="text/javascript">
function getArticle(npage){
    var url = "<?php echo $this->url(array('module' =>'default', 'controller' => 'article', 'action' => 'get-article'), 'default', true)?>";
    $.get(url,{page:npage, id:id, btid:btid},function(data){$("#paginatorForArticle").html(data);})
}
</script>
<?php
/**
 * Classic pagination style
 * 
 * @preview  ‹ First  < 1 2 3 >  Last ›
 */
?>

<div class="paging">
<ul>
  <?php if ($this->previous_page): ?>
    <li class="btnPrevious"><a onclick="getArticle('<?php echo $this->previous_page?>');" style="cursor:pointer;">Previous</a></li>
  <?php endif ?>
  <?php if ($this->next_page): ?>
    <li class="btnNext"><a onclick="getArticle('<?php echo $this->next_page?>');" style="cursor:pointer;">Next</a></li>
  <?php endif ?>
</ul>
</div>